﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CML.Services.Interfaces;
using CML.Services.Implementations;
using SimpleInjector;

namespace CML.Configuration
{
	public class Depencency
	{
		public static Container RegisterDependencies(Container c = null)
		{
			if(c==null)
				c = new Container();

			c.Register<ICMLInterpreterService, CMLInterpreterService>();
			c.Register<IInstructionService, InstructionService>();
			c.Register<IXmlService, XmlService>();
			c.Register<IFileService, FileService>();
			c.Register<IPropertyService, PropertyService>();

			return c;
		}
	}
}
